import request from '@/utils/request'
import { Tag } from '@/types/tag'

/**
 * 获取文章标签
 * @returns
 */
export const queryTagList = (): ResponseResult<Array<Tag>> =>
  request({
    url: `${import.meta.env.VITE_APP_BASE_API}/tag/list`,
    method: 'GET'
  })
